package com.xian.im.modules.im.core;


import com.xian.im.common.model.rule.IRuleServerNode;

import java.util.List;

/**
 * @program: xian-code
 * @description:
 * @author: liru.xian
 * @create: 2021-01-18 19:47
 **/
public interface IRuleImService {

    /**
     * 获取server
     * @return
     */
    IRuleServerNode getIruleServer(String mark);

    /**
     *  获取集群server
     * @return
     */
    List<IRuleServerNode> getServers();

    /**
     *  注册
     * @return
     */
    Boolean register(IRuleServerNode server);

    /**
     *  剔除
     * @param server
     * @return
     */
    Boolean weedOut(IRuleServerNode server);
}
